namespace Battle
{
	public class AttackToIdle : BaseTransition
	{
		public override bool Transite(FsmContext context, ref FsmState nxt)
		{
			Actor a = context.Actor;
			if (a.isAttacking) return false;
			if (a.Target == null || a.Target.Hp <= 0)
			{
				nxt = FsmState.Idle;
				return true;
			}
			else
			{
				return false;
			}
		}
	}
}
